// To change this License template, choose Tools / Templates
// and edit Licenses / FanDefaultLicense.txt
//
// History:
//   07.09.2010 JSTAUDEMEYER Creation
//

**
** AuxTest
**
class AuxTest : Test
{

  Void doNote(TrackBuilder tb, Int pitch) {
    tb.noteOn(pitch,100)
    tb.advance(SequenceBuilder.WHOLE/4)
    tb.noteOff(pitch,100)
  }

  Void test1()
  {
        sb := SequenceBuilder()
        tr := sb.newTrack()
        doNote(tr,60)
        doNote(tr,64)
        doNote(tr,67)
        doNote(tr,72)
        sb.close

        echo(sb.maxTicks)
        echo(sb.sequence.getTickLength)
        verifyEq(sb.maxTicks,sb.sequence.getTickLength)

        SequenceDumper.make.dump(sb.sequence)

        sb.play()
  }
}